{% extends 'myhome/person/index.html' %} 
{% block css %}
		<title>地址管理</title>

		<link href="/static/myhome/AmazeUI-2.4.2/assets/admin.css" rel="stylesheet" type="text/css">
		<link href="/static/myhome/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="/static/myhome/css/personal.css" rel="stylesheet" type="text/css">
		<link href="/static/myhome/css/addstyle.css" rel="stylesheet" type="text/css">
		<script src="/static/myhome/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
		<script src="/static/myhome/AmazeUI-2.4.2/assets/js/amazeui.js"></script>
{% endblock %}	
{% block count %}

		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-address">
						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">收货地址信息</strong> / <small>Address&nbsp;list</small></div>
						</div>
						<hr/>
						<ul class="am-avg-sm-1 am-avg-md-3 am-thumbnails">

							<li class="user-addresslist defaultAddr">
								{% for i in res %}
								<span class="new-option-r"><i class="am-icon-check-circle"></i>默认地址</span>
								<p class="new-tit new-p-re">
									<span class="new-txt">{{i.name}}</span>
									<span class="new-txt-rd2">{{i.phone}}</span>
								</p>
								<div class="new-mu_l2a new-p-re">
									<p class="new-mu_l2cw">
										<span class="title">地址：</span>
										<span class="province">{{i.sheng}}</span>省
										<span class="city">{{i.shi}}</span>市
										<span class="dist">{{i.qu}}</span>区
										<span class="street">{{i.addinfo}}</span></p>
								</div>
								<div class="new-addr-btn">
									<!-- <a href="#"><i class="am-icon-edit"></i>编辑</a> -->
									<span class="new-addr-bar">|</span>
									<!-- <a href="javascript:void(0);" onclick="delClick(this);"><i class="am-icon-trash"></i>删除</a> -->
								</div>
								{% endfor %}
							</li>

							
						</ul>


						<div class="clear"></div>
						<a class="new-abtn-type" data-am-modal="{target: '#doc-modal-1', closeViaDimmer: 0}">添加新地址</a>
						
					</div>






					<script type="text/javascript">
						$(document).ready(function() {							
							$(".new-option-r").click(function() {
								$(this).parent('.user-addresslist').addClass("defaultAddr").siblings().removeClass("defaultAddr");
							});
							
							var $ww = $(window).width();
							if($ww>640) {
								$("#doc-modal-1").removeClass("am-modal am-modal-no-btn")
							}
							
						})
					</script>

					<div class="clear"></div>

				</div>

			</div>


		</div>
{% endblock %}
	</body>

</html>